package cn.xuewenbao.edu.service;

import cn.xuewenbao.edu.entity.Favorite;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

/**
 * <p>
 * 收藏表 服务类
 * </p>
 *
 * @author mafayu
 * @since 2021-04-21
 */
public interface FavoriteService extends IService<Favorite> {

    Result<?> hasFavoriteOne(String userId, String contentId, String columnType);

    Result<?> favoriteContent(String userId, String contentId, String columnType);

    Result<?> unfavoriteContent(String contentId, String userId, String columnType);

    Result<?> favoriteList(String userId, String columnType);

    Result<?> hasFavoriteOne(String userId, String courseId);

    Long totalNum(String courseId);
}
